package com.gong.DesignPattern.SingletonPattern.lanhanShi;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/7 0007 9:14
 */
public class Test {

    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();

        Singleton1 singleton1 = Singleton1.getInstance();
        System.out.println(singleton1.getName());
        singleton1.setName("lisi");
        System.out.println(singleton1.getName());
    }
}
